<template>

    <div class="nav-menu">
        <div style="float: right">
            <el-button type="text" @click="windowsMax">MAX</el-button>
            <el-button type="text" @click="windowsMin">MIN</el-button>
            <el-button type="text" @click="windowsClose">CLOSE</el-button>
        </div>
    </div>

</template>

<script>
  import {ipcRenderer} from 'electron'

  export default {
    name: "Navbar",
    created: function () {
      this.init();
    },
    data() {
      return {}
    },
    methods: {
      init() {
      },
      windowsMax() {
        ipcRenderer.send('window-max');
      },
      windowsMin() {
        ipcRenderer.send('window-min');
      },
      windowsClose() {
        console.log(this);
        return;
        ipcRenderer.send('window-close')
      },
    },
    computed: {},
    mounted() {
    }

  }

</script>

<style scoped>
</style>
